package com.gitee.ywj1352.learning.ag.uc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * Created by ywj on 2018/2/6.
 */
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan(basePackages = {"com.gitee.ywj1352.learning.ag.uc.mapper"})//扫描mapper类的地方
@EnableTransactionManagement //开启事务的注解
public class UserCenter {
    public static void main(String[] args) {
        SpringApplication.run(UserCenter.class,args);
    }
}
